<?php
namespace app\controllers;

use app\models\IndexModel;
use drivers\config;
use drivers\Controller;
use drivers\factory;
use drivers\logs;

class IndexController extends Controller
{
    //网站主页
    function index()
    {
        #Smarty
        $this->assign('content','Welcome This Framework !');
        $this->display('index/index.tpl');

        #非Smarty
        #$this->render('index',['content'=>"Welcome This Framework !"]);

    }

    function test($num){
        echo $num;
    }

}